package com.msconfig.io;

//设备连接方式
public enum DeviceLinkerType {
	BLUETOOTH(0),
	WIFI;

	private final int swigValue;
	private static class SwigNext {
		private static int next = 0;
	}

	DeviceLinkerType() {
		this.swigValue = SwigNext.next++;
	}
	DeviceLinkerType(int swigValue) {
		this.swigValue = swigValue;
		SwigNext.next = swigValue+1;
	}
	public int swigValue() {
		return this.swigValue;
	}

	public static DeviceLinkerType swigToEnum(int swigValue) {
		DeviceLinkerType[] swigValues = DeviceLinkerType.class.getEnumConstants();
		if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
			return swigValues[swigValue];
		for (DeviceLinkerType swigEnum : swigValues)
			if (swigEnum.swigValue == swigValue)
				return swigEnum;
		return BLUETOOTH;
		//throw new IllegalArgumentException("No enum " + DeviceLinkerType.class + " with value " + swigValue);
	}

}
